package wsz.email.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author wsz
 * @date 2022/1/5 10:57
 **/
@RefreshScope
@RestController
@RequestMapping(value = "config")
public class ConfigController {

    @Value("${IP.times}")
    String mailHost;
    @Value("${IP.minutes}")
    String minutes;


    @GetMapping(value = "mailHost")
    public String getTest() {
        return mailHost + "_" + minutes;
    }
}
